package edu.sctu.practice.class02.hujie.my_practice.day20151022;

/**
 * Created by hj on 2015/10/22.
 */
public class Son extends father {
    //子构造函数
    //父类子类的构造函数都会打印
    public Son() {
        System.out.println("this is son constructor");
    }

    //重载
    @Override//注解 理解为标记
    public void eat() {
        System.out.println("son:eat beaf ぁぃ");
    }

    public void study() {
        super.eat();
        eat();
    }

    public static void main(String[] args) {
        Son son = new Son();
        //ctrl+B查看
        son.eat();
        son.run();
        son.study();
        System.out.println(son.money);
    }
}
